package com.sm.service;

import com.sm.entity.Notice;

import java.util.List;

public interface NoticeService {

    public List<Notice> findAllNotice()throws Exception;

    public Notice findNoticeByNid(Integer nid)throws Exception;

    public void addNotice(Notice notice)throws Exception;

    public void updateNotice(Notice notice)throws Exception;

    public void updateStatus(Notice notice)throws Exception;

    public void deleteNotice(Integer nid)throws Exception;

    public void clearNotice(Integer nid)throws Exception;

    //获取最新的通告
    public List<Notice> findNowNotice(Integer limit)throws Exception;

}
